package me.work.pay.jsyl.mvp.model;

import java.io.Serializable;

import me.work.pay.jsyl.mvp.model.entity.LauncherData;

/**
 * description ：
 * author : Brovee
 * email : 8413951@qq.com
 * date : 2020/8/21 13:08
 */
public class AppModel implements Serializable, Cloneable {
    public static final String TAG = "user_object";
    private  static volatile AppModel instance;
    private LauncherData mLauncherData;

    public LauncherData getLauncherData() {
        return mLauncherData==null?new LauncherData():mLauncherData;
    }

    public static AppModel getInstance() {
        if (instance == null) {
            synchronized (AppModel.class) {
                if (instance == null) {
                    instance = new AppModel();
                }
            }
        }
        return instance;
    }
    public void saveLauncherData(LauncherData LauncherData){
        this.mLauncherData = LauncherData;
    }

}
